<extend name="Users:layout" />
<block name="content">
    <div class="wst-body"> 
       <div class='wst-page-header'>买家中心 > 我的晒单列表</div>
       <div class='wst-page-content'>
        <table class='wst-list' style="font-size:13px;">
           <thead>
             <tr>
               <th width='80'>订单编号</th>
               <th width='280'>商品信息</th>
               <th width='80'>标题</th>
               <th>图片1</th>
			   <th>图片2</th>
               <th>图片3</th>
               <th>图片4</th>
               <th>审核状态	</th>
             </tr>
           </thead>
           <tbody>
            <volist name="Page['root']" id="share" key='key1'>
             <tr style="border-bottom:1px solid #eeeeee;">
             	<td width='80' style="padding-top:10px;vertical-align:top;">{$share["orderId"]}</td>
                <td width='280'>
                    <div style='width:70px;float:left'>
					<a target='_blank' href="{:U('Home/Goods/getGoodsDetails/',array('goodsId'=>$share['goodsId']))}">
						<img src="__ROOT__/{$share['goodsThums']}" height="60" width="60"/>
					</a>
					</div>
					<div style='width:200px;float:left;line-height:25px;'>{$share['goodsName']}</div>
					</div>
					</div>
				</td>
               	<td >
               	{$share.shareTitle}
				</td>
				<td >
               		<if condition="$share['shareImg1'] neq ''">
						<img width='100' height='100' src="/{$share.shareImg1}" />
					</if>
				<td >
					<if condition="$share['shareImg2'] neq ''">
						<img width='100' height='100' src="/{$share.shareImg2}" />
					</if>
				<td>
					<if condition="$share['shareImg3'] neq ''">
						<img width='100' height='100' src="/{$share.shareImg3}" />
						</if>
	               	</td>
               	<td>
	               	<if condition="$share['shareImg4'] neq ''">
					<img width='100' height='100' src="/{$share.shareImg4}" />
					</if>
               	</td>
               	<td>
				<div>
               		<if condition="$share['isShow'] eq 0">审核中
               		<elseif condition="$share['isShow'] eq 1" />通过
               		<elseif condition="$share['isShow'] eq -1" />未通过</if>
				</div>
                </td>
             </tr>
             <tr>
                <td colspan='8' align="left">内容：{$share["shareContent"]}</td>
             </tr>
             </volist>
             <if condition="$shareList['totalPage'] gt 1">
             <tfoot>
             <tr>
                <td colspan='8' align='center' style="height:30px;border-bottom: 0px;">
					<div class="wst-page" style="float:right;padding-bottom:10px;">
						<div id="wst-page-items">
						</div>
					</div>
				</td>
             </tr>
             </tfoot>
             </if>
           </tbody>
        </table>
        </div>
    </div>
    <script>
    <if condition="$shareList['totalPage'] gt 1">
    $(document).ready(function(){
		laypage({
		    cont: 'wst-page-items',
		    pages: {$shareList['totalPage']}, //总页数
		    skip: true, //是否开启跳页
		    skin: '#e23e3d',
		    groups: 3, //连续显示分页数
		    curr: function(){ //通过url获取当前页，也可以同上（pages）方式获取
		        var page = location.search.match(/pcurr=(\d+)/);
		        return page ? page[1] : 1;
		    }(), 
		    jump: function(e, first){ //触发分页后的回调
		        if(!first){ //一定要加此判断，否则初始时会无限刷新
		        	var nuewurl = WST.splitURL("pcurr");
		        	var ulist = nuewurl.split("?");
		        	if(ulist.length>1){
		        		location.href = nuewurl+'&pcurr='+e.curr;
		        	}else{
		        		location.href = '?pcurr='+e.curr;
		        	}
		            
		        }
		    }
		});
    });
	</if>
</script>
</block> 